package day04;

import java.util.Scanner;

public class Day04Text {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //1.
        /*

        System.out.println("请选择功能：1.存款 2.取款 3.查询余额 4.退卡");

        int a = scan.nextInt();
        switch (a){
            case 1:
                System.out.println("存款业务...");
            case 2:
                System.out.println("取款业务...");
            case 3:
                System.out.println("查询余额业务...");
            case 4:
                System.out.println("退卡成功");
            default:
                System.out.println("输入错误");
        }

         */
        //2.
        /*int num = (int)(Math.random()*1000+1);
        System.out.println("猜吧!");
        int guess = scan.nextInt();
        while (guess!=num){
            if (guess>num){
                System.out.println("猜大了");
            }else {
                System.out.println("猜小了");
            }
            guess = scan.nextInt();
        }
        System.out.println("恭喜你猜对了");
         */
        //3.
        /*int num = (int)(Math.random()*1000+1);
        System.out.println("猜吧!");
        int guess;
        do {
            guess = scan.nextInt();
            if (guess>num){
                System.out.println("猜大了");
            }else if (guess<num){
                System.out.println("猜小了");
            }
        }while (guess!=num);
        System.out.println("恭喜你猜对了");

         */
        //4.
        /*for (int a =1;a<=5;a++){
            System.out.println("行动是成功的阶梯");
        }
         */
        //扩展1.
        /*int num = scan.nextInt();
        if (num>0){
            System.out.println("+");
        }else if (num<0){
            System.out.println("-");
        }else {
            System.out.println("0");
        }
         */
        //扩展2.




    }



}
